//
//  MCConfig.h
//  Library
//
//  Created by meng chao on 12/12/13.
//  Copyright (c) 2013 mcgtts. All rights reserved.
//

#ifndef Library_MCConfig_h
#define Library_MCConfig_h

#import "LoggerClient.h"

/**
 * NSLogger
 */
#ifdef DEBUG
#define NSLog(...) LogMessageF( __FILE__,__LINE__,__FUNCTION__, NULL, 0, __VA_ARGS__)
#define MCLogNetwork(level, ...)    LogMessageF(__FILE__,__LINE__,__FUNCTION__,@"network",level,__VA_ARGS__)
#define MCLogGeneral(level, ...)    LogMessageF(__FILE__,__LINE__,__FUNCTION__,@"general",level,__VA_ARGS__)
#define MCLogGraphics(level, ...)   LogMessageF(__FILE__,__LINE__,__FUNCTION__,@"graphics",level,__VA_ARGS__)
#define MCLogNetworkImage(level, width, height, data)  LogImageDataF(__FILE__, __LINE__, __FUNCTION__, @"network image", level, width, height, data)
#define MCLogImage(level, width, height, data)  LogImageDataF(__FILE__, __LINE__, __FUNCTION__, @"general image", level, width, height, data)
#else
#define NSLog(...)  do{}while(0)
#define MCLogNetwork(...)    do{}while(0)
#define MCLogGeneral(...)    do{}while(0)
#define MCLogGraphics(...)   do{}while(0)
#define MCLogNetworkImage(...)   do{}while(0)
#define MCLogImage(...)   do{}while(0)
#endif

#endif
